
import Layout from '@/layout'

export default {
  // 一级路由的地址
  path: '/subject',
  // 是用布局作为组件
  component: Layout,
  // 【名称，非常的重要，有可能是作为权限的筛选标识】
  name: 'subject',
  meta: { title: '学科管理',
    icon: 'table' },
  children: [
    {
      path: '',
      component: () => import('@/views/subject/subject'),
      name: 'subject',
      meta: {
        title: '学科信息',
        icon: 'tree'
      }
    }, {
      path: 'directory',
      component: () => import('@/views/subject/directory'),
      name: 'directory',
      meta: {
        title: '目录信息',
        icon: 'tree-table'
      }
    },
    {
      path: 'tag',
      component: () => import('@/views/subject/tag'),
      name: 'tag',
      meta: {
        title: '标签信息',
        icon: 'lock'
      }
    }

  ]
}
